package com.ltmall.api.manager.impl;

import com.ltmall.api.bean.CrazyCompetition;
import com.ltmall.api.bean.CrazyCompetitionMember;
import com.ltmall.api.bean.WalletGiftCard;
import com.ltmall.api.dao.impl.CrazyDAO;
import com.ltmall.api.manager.CrazyManager;

import java.util.List;

public class CrazyManagerImpl implements CrazyManager {

	private CrazyDAO cDAO;
	public CrazyDAO getcDAO() {
		return cDAO;
	}

	public void setcDAO(CrazyDAO cDAO) {
		this.cDAO = cDAO;
	}

	public boolean addMember(CrazyCompetitionMember member) {
		// TODO Auto-generated method stub
		return cDAO.addMember(member);
	}

	public int maxPhase() {
		// TODO Auto-generated method stub
		return cDAO.maxPhase();
	}

	public CrazyCompetition getCompetition(int phase) {
		// TODO Auto-generated method stub
		return cDAO.getCompetition(phase);
	}

	public List<CrazyCompetitionMember> getCompetitionMember(int phase, int cardID,int station) {
		// TODO Auto-generated method stub
		return cDAO.getCompetitionMember(phase, cardID, station);
	}

	public WalletGiftCard getCard(int cardID) {
		// TODO Auto-generated method stub
		return  cDAO.getCard(cardID);
	}

	public CrazyCompetitionMember getCompetitionMember(int number) {
		// TODO Auto-generated method stub
		return cDAO.getCompetitionMember(number);
	}

	public int getCompetitionNuber(int phase, int cardID, int userID) {
		// TODO Auto-generated method stub
		return  cDAO.getCompetitionNuber(phase, cardID, userID);
	}

	public List<?> getCompetitionMemberWithPhoto(int phase, int cardID) {
		// TODO Auto-generated method stub
		return  cDAO.getCompetitionMemberWithPhoto(phase, cardID);
	}

	public boolean updateWinner(int phase, String cardID, String winner) {
		// TODO Auto-generated method stub
		return  cDAO.updateWinner(phase, cardID, winner);
	}

	public boolean updatePhaseStation(int station, int phase) {
		// TODO Auto-generated method stub
		return cDAO.updatePhaseStation(phase, station);
	}

	public boolean updateGiftCardID(int userID, int cardID) {
		// TODO Auto-generated method stub
		return cDAO.updateGiftCardID(userID, cardID);
	}

	public boolean updateMemberStation(int number, int station) {
		// TODO Auto-generated method stub
		return  cDAO.updateStationMember(number, station);
	}

	public List<CrazyCompetitionMember> getOneCompetitionMember(int cardID, int userID) {
		// TODO Auto-generated method stub
		return cDAO.getOneCompetitionMember(cardID, userID);
	}
	
}
